Repository navigation
Switch 19 packages from git to npm auto-update with fileMap updates - #2219
Conversation
|
🤔 Hm, the failure in |
|
The check fails because Both lines are supported: 14.x versions publish beep-boop-niklas-agent-🤖 |
|
Pushed a follow-up: markdown-it's beep-boop-niklas-agent-🤖 |
|
Hm, the CI is still failing on the same issue, the |
|
I moved markdown it into a separate PR now to unblock this one and there is a tools MR to fix the CI. |
* Publish intl-tel-input ESM modules from npm Map the three self-contained dist/js/*.mjs modules alongside the existing browser JS/CSS assets. They are supported by cdnjs and available on npm, but were omitted when the package switched from git to npm in #2219. Existing versions need reingestion to gain the modules. Refs #2114 * Publish intl-tel-input type declarations Map the four dist/js/*.d.ts files that pair with the ESM builds, for consumers importing from a URL (e.g. Deno). cdnjs published intlTelInput.d.ts under the old git layout. css/styles.d.ts is left out: it only types CSS-module imports. * Apply suggestion from @MattIPv4 --------- Co-authored-by: Matt Cowley <me@mattcowley.co.uk>
Switches 19 packages from git to npm auto-update and updates their fileMap or
filenamefor the npm layout.Recent GitHub tags of these repositories matched nothing in the fileMap, because the tags hold sources and the built files only ship on npm. Each npm package below comes from the same GitHub repository as the current git target (compared by repository ID, so renames and org transfers are covered).
fileMap entries for older layouts are kept where they still match old releases. No fileMap uses a globstar (
**) anymore: old**entries that match nothing on npm are removed, and the rest are narrowed to the files a browser needs.filenamechanges where the old default file no longer exists in the latest npm release. react-cookie'srepository.urlalso moves toItsBenCodes/cookies, where the oldeXon/react-cookierepository now redirects.Checks per package:
filenameexists among the files the latest version publishes, counting the.min.jsthe bot generates for each unminified file.checker lintpasses.The last column is roughly what the bot imports after this merges, estimated with its version selection (5 versions per run, older releases only within a year of the newest).
filenamebehaviortreelib:index.umd.jsbtree-complete.min.js→index.umd.min.jsbootstrap-touchspindist:**/*→*.@(js|css|map)jquery.bootstrap-touchspin.min.js→jquery.touchspin-bootstrap5.umd.min.jsdflow(root):dflow.js;dist:**/*→dflow.js,nodes.jsdoofinderbrowser:doofinder*.js; removeddist:**/*flipclockdist:FlipClock.umd.js,FlipClock.umd.js.map,themes/flipclock.cssflipclock.min.js→FlipClock.umd.min.jsframework7(root):framework7-bundle.min.js,framework7-bundle.min.js.map,framework7-bundle.css,framework7-bundle.min.css,framework7-bundle-rtl.css,framework7-bundle-rtl.min.css; removedpackages/core:**/framework7!(.module|.modular|.esm|.less)*js/framework7.min.js→framework7-bundle.min.jsfullcalendar-scheduler(root):all/global.js,index.global*.js; removeddist:**/!(*.ts)scheduler.min.js→all/global.min.jsintl-tel-inputdist:css/*.css,js/*.js,js/locale/*.js,js/locale/country-names/*.js,img/*.@(webp|png); removed the oldbuild/entrybuild/js/intlTelInput.min.js→js/intlTelInput.min.jsjs-yamldist/browser:js-yaml.umd.min.js,js-yaml.umd.min.js.mapjs-yaml.min.js→js-yaml.umd.min.jsjustgagedist:justgage.umd*.js*justgage.min.js→justgage.umd.min.jsladdajs:ladda.jsmultiple-selectdist:*.@(css|js),themes/*.css,locale/*.jsng-tablebundles:ng-table*.+(js|css|map)pakodist:**/*→browser/*.@(js|mjs|map),*.mjs?(.map)pako.min.js→browser/pako.umd.min.jsreact-cookieumd:reactCookie*.jsreact-cookie.min.js→reactCookie.min.jsshell.jslib:shell*.js; removeddist:**/*js/shell.min.js→shell.min.jssip.jslib: one*.jspattern per directory of the ES module tree; removeddist:*.jssip.min.js→index.jsvideomail-clientdist:**/*→umd/*.jsvideomail-client.min.js→umd/index.min.js@wangeditor/editordist:*.@(js|map),css/*.css; removedrelease:**/*wangEditor.min.js→index.min.jsLadda's new
js/ladda.jsis an ES module that importsspin.jsby bare name, so it needs an import map in the browser. sip.js and dflow ship ES modules without bare imports. sip.js has no browser bundle on npm, so its wholelibtree is published; its last release was in 2022, so the directory list will not drift. cdnjs lists an empty sip.js0.21.3as latest, which npm never had; it will be removed on the bot side too. flipclock 0.10.5 matches no files and will be skipped.wangEditor moves to
@wangeditor/editor. Thewangeditorpackage stopped at 4.7.15 (2022); v5 ships as@wangeditor/editorfrom the same repository, and the installation docs loaddist/index.min.jsanddist/css/style.cssfrom a CDN.dist/index.jsis a UMD bundle (globalwangEditor) anddist/index.esm.jsan ES module, neither with external imports. cdnjs has none of its versions, so the bot imports the newest 10 (5.1.14 to 5.1.23); 4.7.15 is not imported. cdnjs also lists10.0.13and@wangeditor/video-module@0.10.8, which came from the git tags.10.0.13would otherwise stay the latest version, and with the newfilenameits default link would point at a file it doesn't have, so both entries will be removed on the bot side."Re-imported" means cdnjs currently lists those versions with no files. Those entries count as published, so they will be removed on the bot side and imported again from npm. Older versions listed without files stay as they are.
The git-to-npm switches that need no fileMap change went into #2218. markdown-it moved to #2223, because CI checks its
filenameagainst the wrong version.beep-boop-niklas-agent-🤖